package com.mtsmda.jpa.domain.perClassTable;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name = "PROGRAMMERS")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Programmer implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.TABLE)
	private Integer idProgrammer;

	private Boolean knowHTML;

	private Boolean knowCSS;

	public Programmer() {
		super();
	}

	public Programmer(Boolean knowHTML, Boolean knowCSS) {
		this();
		setKnowCSS(knowCSS);
		setKnowHTML(knowHTML);
	}

	public Integer getIdProgrammer() {
		return idProgrammer;
	}

	public void setIdProgrammer(Integer idProgrammer) {
		this.idProgrammer = idProgrammer;
	}

	public Boolean getKnowHTML() {
		return knowHTML;
	}

	public void setKnowHTML(Boolean knowHTML) {
		this.knowHTML = knowHTML;
	}

	public Boolean getKnowCSS() {
		return knowCSS;
	}

	public void setKnowCSS(Boolean knowCSS) {
		this.knowCSS = knowCSS;
	}

}